{include file="public/header" /}				   
<main class="thinkask-main">
    <div class="container">
      <div class="row">
        <section class="col-lg-9">
            <div class="page page-default">
                <div class="page-heading height clearfix">
                <h3 class="pull-left">全部问题</h3>
                <ul class="nav nav-tabs  pull-right hidden-xs">
                  
                   <li class=" <?php if($status!="hot"&&$status!="recommend"&&$status!="unresponsive"){ echo "active";} ?>">
                      <a href="/question.html"  >最新的</a></li>
                  
                  <li class=" <?php if($status=="unresponsive"){ echo "active";} ?>">
                      <a href="/question/index/status/unresponsive.html"  >待回复的</a></li>
        
                    <li class=" <?php if($status=="hot"){ echo "active";} ?>">
                      <a href="/question/index/status/hot.html" id="sort_control_hot" >热门的</a>
                    </li>
                    <li class=" <?php if($status=="recommend"){ echo "active";} ?>">
                      <a href="/question/index/status/recommend.html" >推荐的</a></li>
                   
                
                  </ul>
                </div>
                <div class="page-body">
                    <section class="default-question">
                      {foreach  name='$list' id="v"}
                      <div class="question-list clearfix">
                        <ul class="question-num list-unstyled m-b-n">
                          <li><span class="num"> {$v['answer_count']} </span><span class="txt"> 回复 </span></li>
                          <li><span class="num"> {$v['view_count']} </span><span class="txt"> 浏览 </span></li>
                        </ul>
                        <div class="question-content">
                          <h3 class="question-title"><a href="/question/detail/{:encode($v['question_id'])}.html">{$v['question_content']}</a></h3>
                          <div class="question-info">
                            <div class="pull-left">
                              <a href="" rel="nofollow">{$v.user_name}</a> {:date_friendly($v['add_time'])}发布
                            </div>
                          <?php if(is_array($topics[$v['question_id']])) {?>
                            <ul class="tags list-unstyled pull-right m-b-n">
                            {foreach name="$topics[$v['question_id']]" id="to"}
                              <li><a href="javascript:;" title="{$to.topic_title}">{$to.topic_title}</a></li>
                            {/foreach}
                            </ul>
                           <?php } ?>
                           
                          </div>
                        </div>
                      </div> 
                      {/foreach}
                       {$list->render()}
                    </section>
                </div>
            </div>
  
        </section>
        <aside class="col-lg-3">
          <div class="col-lg-12" style="padding:0px;">{adv tagname='index_top_right' /}</div>
               <section class="box">
                  <div class="box-heading">
                    <h3>热门问题</h3>
                  </div>
                  <div class="box-body">
                    <ul class="list-unstyled">
                    {question order="add_time desc"}
                      <li class="li-box-list"><a href="/question/detail/{:encode($v['question_id'])}.html" title="{$v.question_content}">{$v.question_content}</a></li>
                    {/question}
                    </ul>
                  </div>
                </section>
                <section class="box">
                 <div class="col-lg-12" style="padding:0px;">{adv tagname='index_center_right' /}</div>
                  <div class="box-heading">
                    <h3>新用户</h3>
                  </div>
                  <div class="box-body">
                    <ul class="list-unstyled">
                    {users order="uid desc"}
                       <li class="user-list">
                         <a href="/people/{:encode($v['uid'])}.html" title="{$v.user_name}" class="avatar"><img src="{:get_file_path($v['avatar_file'])}"alt="{$v.user_name}" /></a>
                         <div class="user-content">
                          <h4><a href="" title="{$v.user_name}">{$v.user_name}</a></h4>
                          <p> {:date_friendly($v['reg_time'])} </p>
                         </div>
                       
                       </li>
                    {/users}
                     
                      
                    </ul>
                  </div>
                </section>
                
                <section class="box">

                  <div class="box-heading" >
                    <h3>热门标签</h3>
                  </div>
                  <div class="box-body">
                  <div class="col-lg-12" style="padding:0px;">{adv tagname='index_bottom_right' /}</div>
                    <ul class="list-unstyled tags">
                    {tags order="topic_id desc"}
                      <li><a href="javascript:;">{$v.topic_title}</a></li>
                    {/tags}
                      
                      
                    </ul>
                  </div>
                </section>
                
            
        </aside>
      </div>
    </div>
</main>
					  
					  
					  
{include file="public/footer" /}